﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPlatePrintSys.Infrastructure.Models {
    public class MaterialManagementModel {
        public int ID { get; set; }    // 编号
        public string VesselNumber { get; set; }    // 船号
        public string BatchNumber { get; set; }    // 批次
        public string UnitName { get; set; }        // unit名称
        public string LotNumber { get; set; }       // lot名称
        
        private DateTime scheduledDate { get; set; }   // 使用预定日
        public string ScheduledDate { get { return this.scheduledDate.ToString("yyyy/MM/dd"); } }   // 使用预定日
        public string ProcessSequence { get; set; } // 加工序列
        public string CuttingCode { get; set; } // 切割代码

        public string Specification { get; set; } // 规格
        public int Thickness { get; set; } // 厚
        public int Width { get; set; } // 厚
        public int Length { get; set; } // 长度

        public string MaterialSpecification { get; set; } // 材料规格
        public int MaterialThickness { get; set; } // 材料厚
        public int MaterialWidth { get; set; } // 材料厚
        public int MaterialLength { get; set; } // 材料长度

        
        public string CombineInfo { get; set; }          // 状态
        public string Remarks { get; set; }         // 备注
        public string ConsistentCoding { get; set; }      // 一贯编码

        public MaterialManagementModel(int iD, string vesselNumber, string batchNumber, string unitName, string lotNumber, 
            DateTime scheduledDate, string processSequence, string cuttingCode, 
            string specification, int thickness, int width, int length, 
            string materialSpecification, int materialThickness, int materialWidth, int materialLength, 
            string combineInfo, string remarks, string consistentCoding) {
            ID = iD;
            VesselNumber = vesselNumber;
            BatchNumber = batchNumber;
            UnitName = unitName;
            LotNumber = lotNumber;
            this.scheduledDate = scheduledDate;
            ProcessSequence = processSequence;
            CuttingCode = cuttingCode;
            Specification = specification;
            Thickness = thickness;
            Width = width;
            Length = length;
            MaterialSpecification = materialSpecification;
            MaterialThickness = materialThickness;
            MaterialWidth = materialWidth;
            MaterialLength = materialLength;
            CombineInfo = combineInfo;
            Remarks = remarks;
            ConsistentCoding = consistentCoding;
        }
    }
}
